Skip to content

Conversation

edving
Copy link
Member

@edving edving commented Oct 29, 2026

Adds real end-to-end testing through the frontend, GraphQL backend and an isolated MongoDB database, with pull request quality checks and navigation fixes.

Changes:

  • Added Playwright scenarios for search, combined filters, sorting, pagination, details and returning to results
  • Added persistence checks for ratings and My XI, including reloads, updates, deletion and separate users
  • Extended API and MongoDB integration tests for validation, error recovery and stable pagination across tied sort values
  • Added isolated test databases, separate server ports, automatic cleanup and browser diagnostics
  • Configured pull request workflows for clean installs and quality checks on Linux/macOS, plus MongoDB integration and Chromium tests
  • Fixed rapid filter changes losing the submitted search
  • Updated menu links to open fresh catalogs while detail-return links preserve the previous view
  • Updated visible branding to WC26 and replaced group-stage totals on team cards with FIFA ranking and head coach
  • Documented setup, results and limitations in docs/testing.md

How to test:

  • Follow docs/testing.md to start a disposable MongoDB service on port 27028
  • From the repository root, run npm ci --prefix backend --include=optional and npm ci --prefix frontend --include=optional
  • Run npm test --prefix backend and npm test --prefix frontend
  • Run MONGODB_TEST_URI=mongodb://127.0.0.1:27028 npm run test:integration --prefix backend
  • Install Chromium with npm run test:e2e:install --prefix frontend
  • Run MONGODB_TEST_URI=mongodb://127.0.0.1:27028 npm run test:e2e --prefix frontend
  • Check that menu links reset catalog state, while detail-return links and browser Back preserve it

Verification and limitations:

  • Local verification reports 131 frontend tests, 110 backend tests, 27 integration tests and seven Playwright scenarios passing
  • Builds, browser-test type checking, lint and formatting passed in the documented local verification
  • Tests use generated databases and do not use the production database name
  • GitHub Actions execution remains to be verified after push
  • Browser coverage currently uses Chromium; VM deployment is outside this change

Test saved-data GraphQL mutations, validation and tied pagination against temporary databases, add the isolated browser-test API and MongoDB service, and update vulnerable transitive dependencies.

Issue #44
Return details to their actual source after refresh, reset catalogs through menu links, preserve rapid filter changes, remove heading focus outlines, use WC branding, and replace group-stage card totals with ranking and coach information.

Issue #44
Add regressions for contextual return links, catalog resets, rapid filter changes and invalid rating and lineup drafts, and update fixtures, cache assertions and snapshots for the revised team cards.

Issue #44
Run Chromium against production frontend builds, the real GraphQL API and isolated MongoDB, covering catalog flows, persistence after reload, error recovery, contextual navigation and narrow mobile layouts.

Issue #44
Check builds, lint, formatting and unit tests on Linux and macOS, and run MongoDB integration and browser tests with failure diagnostics against a disposable CI database.

Issue #44
Document clean setup, database isolation, browser testing, CI configuration and verified results, explain menu and detail navigation behavior, and refresh resource measurements for the updated frontend.

Closes #44
@edving edving requested a review from a team as a code owner October 29, 2026 23:18
Remove the runner-dependent workflow, document local checks and optional future PR automation, and preserve all tests, database isolation, cleanup and verified results.

Closes #44
Copy link
Member

@sawaymas sawaymas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work Edvin!

@edving edving merged commit ce32c57 into dev Oct 29, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants